#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n;
	double distance = 0, height = 100;
	scanf("%d", &n);

	for (int i = 1; i <= n; i++)
	{
		if (i == 1)
			distance += height;
		else
			distance += height * 2;
		height /= 2;
	}

	printf("%lf %lf", distance, height);
	return 0;
}